import Model from '@/utils/http.js'
const api = new Model()

// 查询收藏店铺分页信息
export function shopCollectList(data){
	return api.get({
		url: '/merchant/shop/collect/list',
		data
	})
}

// 取消收藏店铺 批量
export function shopCollectUnCollectBatch(data){
	return api.put({
		url: '/merchant/shop/collect/unCollectBatch',
		data
	})
}

// 订单详情汇总详情
export function orderSummaryDetail(data){
	return api.get({
		url: '/customer/order/summary/detail',
		data
	})
}

// 用户通用订单列表
export function orderSummaryList(data){
	return api.get({
		url: '/customer/order/summary/list2',
		data
	})
}

// 神椰打卡活动状态 状态 1 已下架 2 未下架
export function getPunchActivityStatus(id){
	return api.get({
		url: `/customer/order/summary/getPunchActivityStatus/${id}`,

	})
}

// H5 兑换商品 去支付 积分集市
export function integralToPay(data){
	return api.put({
		url: '/change/order/exchange/toPay',
		type:1,
		data
	})
}

// 集市兑换取消订单
export function integralCancel(id){
	return api.put({
		url: `/integral/commodity/v1/exchange/cancel/${id}`,
	})
}

// 宝箱取消订单
export function shenyeParadiseCancel(id){
	return api.put({
		url: `/shenye/paradise/cancel/${id}`,
	})
}

// 宝箱去支付
export function paradiseToPays(data){
	return api.put({
		// url: '/shenye/paradise/toPay',
		url: '/paradise/order/toPay',
		type:1,
		data
	})
}

// 查询收藏店铺数量
export function shopCollectNum(){
	return api.get({
		url: '/merchant/shop/collect/num',
	})
}

// 申请退款-新
export function customerCouponRefundApply(orderId){
	return api.put({
		url: `/shenye/customer/coupon/refund/apply/${orderId}`
	})
}

// <------------用户注销接口----------------->
// 获取注销验证码
export function loginLogoutSmsCode(phone){
	return api.get({
		url: '/app/v1/customer/login/logout/sms/code',
		data: {
			"phone": phone
		}
	})
}
// 注销验证码校验
export function loginLogoutSmsVerification(data){
	return api.post({
		url: '/app/v1/customer/login/logout/sms/verification',
		data
	})
}

// 用户资产判断
export function customerAssetStatus(){
	return api.get({
		url: '/app/v1/customer/login/getCustomerAssetStatus',
	})
}

// 用户注销
export function customerLoginLogOff(){
	return api.post({
		url: '/app/v1/customer/login/logOff',
	})
}

// 用户退出登录
export function customerV1Logout(){
	return api.post({
		url: '/customer/v1/logout',
	})
}

// <----------------end--------------------->

// <------------2023.9.5----------------->
//  查询我的钱包按钮
export function myWalletButton(){
	return api.get({
		url: '/mine/center/myWalletButton',
	})
}
// 查询神椰工厂和积分集市按钮
export function marketPlantButton(){
	return api.get({
		url: '/mine/center/marketPlantButton',
	})
}
//查询积分集市商品类型
export function marketCommodityType(){
	return api.get({
		url: '/mine/center/marketCommodityType',
	})
}

// <----------------end--------------------->

// <------------2023.9.6----------------->
//  查询问题分类列表
export function questionTypeList(){
	return api.get({
		url: '/shenye/question/type/list',
	})
}
//  查询问题列表
export function questionList(data){
	return api.get({
		url: '/shenye/question/content/list',
		data
	})
}
//  查询问题内容
export function questionInfo(id){
	return api.get({
		url: `/shenye/question/content/getInfo/${id}`,
	})
}
// <----------------end--------------------->

// <------------神椰2.2.8----------------->
// 获取观影活动 观影开始时间的日期分组
export function listTimeGroup(merchantId){
	return api.get({
		url: `/film/activities/v1/getListTimeGroup/${merchantId}`,
	})
}
// 观影活动详情
export function activitiesGetInfo(id){
	return api.get({
		url: `/film/activities/v1/getInfo/${id}`,
	})
}
// 观影活动 分页列表
export function activitiesV1List(data){
	return api.get({
		url: '/film/activities/v1/list',
		data
	})
}
// 观影资格 分页列表
export function filmShipList(data){
	return api.get({
		url: '/customer/film/apply/v1/filmShipList',
		data
	})
}
// 观影资格详情
export function filmApplyV1GetInfo(id){
	return api.get({
		url: `/customer/film/apply/v1/getInfo/${id}`,
	})
}
// 观影活动 报名
export function filmApplyV1(data){
	return api.post({
		url: '/customer/film/apply/v1',
		data
	})
}
// 观影活动 取消报名
export function filmApplyV1Cancel(id){
	return api.put({
		url: `/customer/film/apply/v1/cancel/${id}`,
	})
}
// 获取用户报名数据回显
export function getCustomerFilmApplyDetail(){
	return api.get({
		url: '/customer/film/apply/v1/getCustomerFilmApplyDetail',
	})
}
//  <----------------end--------------------->

// 神椰 2.3.1 Star
// 解绑微信
export function mineCenterUnbindWx(){
	return api.put({
		url: '/mine/center/unbind/wx'
	})
}
// 绑定微信
export function mineCenterBindWx(data){
	return api.put({
		url: '/mine/center/bind/wx',
		data
	})
}
//  <----------------end--------------------->
//  <----------------end--------------------->
// 神椰 2.4.1 Star
// 赚卡订单 订单使用记录
export function getMerchantEquityCardOrderDetailList(id){
	return api.get({
		url: `/customer/order/summary/getMerchantEquityCardOrderDetailList/${id}`
	})
}
// H5 赚卡退款申请
export function equityreCardOrderFundApply(data){
	return api.post({
		url: '/customer/equity/card/order/refund/v1/refund/apply',
		data
	})
}
// H5 撤销退款
export function equityreCardOrdeRevokeRefund(data){
	return api.put({
		url: '/customer/equity/card/order/refund/v1/revokeRefund',
		data
	})
}

// 邀请人活动页面
export function equityCardOrderInviteInfo(orderId){
	return api.get({
		url: `/customer/equityCard/order/assistance/v1/invite/info/${orderId}`
	})
}
// 奖励明细
export function equityCardOrderRewardDetails(orderId){
	return api.get({
		url: `/customer/equityCard/order/assistance/v1/rewardDetails/${orderId}`
	})
}
// 被邀请人页面
export function equityCardOrderGetBeInvitedInfo(data){
	return api.post({
		url: '/customer/equityCard/order/assistance/v1/getBeInvitedInfo',
		data
	})
}
// 生成面对面二维码
export function equityCardOrderScanCode(data){
	return api.post({
		url: '/customer/equityCard/order/assistance/v1/scanCode',
		data
	})
}
// 好友助力
export function equityCardOrderV1HelpAssist(data){
	return api.post({
		url: '/customer/equityCard/order/assistance/v1/helpAssist',
		data
	})
}
// 获取好友助力信息
export function equityCardOrderHelpPoint(orderId){
	return api.get({
		url: `/customer/equityCard/order/assistance/v1/help/point/${orderId}`,
	})
}
// 获取是否有进行中活动
export function equityCardOrderGetInProgressFlag(orderId){
	return api.get({
		url: `/customer/equityCard/order/assistance/v1/getInProgressFlag/${orderId}`,
	})
}
//微信授权登录
export function assistanceStageWxLoginVo(data){
	return api.post({
		url: '/customer/equityCard/order/assistance/v1/AssistanceStageWxLoginVo',
		data
	})
}
//  <----------------end--------------------->
// <------------神椰 2.4.2 Star----------------->
// 赚卡详情 用户评价列表
export function evaluateV1List(data){
	return api.get({
		url: '/customer/equity/card/order/evaluate/v1/list',
		data
	})
}
// 添加评论列表
export function addEvaluate(data){
	return api.post({
		url: '/customer/equity/card/order/evaluate/v1',
		data
	})
}
// 获取评论详情
export function evaluateV1Detail(id){
	return api.get({
		url: `/customer/equity/card/order/evaluate/v1/detail/${id}`
	})
}
//  <----------------end--------------------->

// <------------神椰 2.4.4 Star----------------->
// 获取是否有历史卡标识(权益卡、勋章卡)
export function getNfrFlag(){
	return api.get({
		url: '/equityManager/equityCard/getNfrFlag'
	})
}

// <------------金鹏积分 Star----------------->
// 兑换规则说明
export function jpSetupDetail(data){
	return api.get({
		url: '/shenye/points/exchange/order/setup/detail',
		data
	})
}
// 积分兑换提交详情
export function jpSubmitetail(data){
	return api.get({
		url: '/shenye/points/exchange/order/submit/detail',
		data
	})
}
// 积分通兑
export function jpPointsexchange(data){
	return api.post({
		url: '/shenye/points/exchange/order/points/exchange',
		showTip: true, //自定义提示
		data
	})
}
// 积分兑换记录
export function jpOrderList(data){
	return api.get({
		url: '/shenye/points/exchange/order/list',
		data
	})
}
//  <----------------end--------------------->

// <------------神椰 2.4.5 Star----------------->
// 用户 订单 待使用数量
export function beUsedNum(){
	return api.get({
		url: '/customer/order/summary/getBeUsedNum',
	})
}
//  <----------------end--------------------->



// 聚推客订单列表 2024年8月27日15:15:32
export function orderJuTuiKeList(data){
	return api.get({
		url: '/shenye/jtk/orders/list',
		data
	})
}
// 神椰聚推客订单详情 2024年8月27日15:15:32
export function orderJuTuiKeDetails(id){
	return api.get({
		url: `/shenye/jtk/orders/detail/${id}`,
	})
}